"""
文件操作
open()函数

"""
fr = open('./test.txt','r',encoding='utf-8')
fw = open('./test1.txt','w',encoding='utf-8')
for line in fr:
    print(line)
    fw.write(line)

fw.flush()
fw.close()
fr.close()
